package com.xingfei.blog.controller;

import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ErrorHandleController implements ErrorController {
    /** 
     * @return 
     * @see org.springframework.boot.autoconfigure.web.ErrorController#getErrorPath() 
     */  
    @Override  
    public String getErrorPath() {  
        return "/error";
    }  
       
    @RequestMapping
    public String errorHandle(){  
        return getErrorPath();  
    }  
} 